home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / ezzcomm.zip / ADDUPGEN.T < prev    next >
Text File  |  1991-02-16  |  3KB  |  40 lines

  1.  : EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
  2.  : Licensed for use at your own risk without fee. Altered versions,
  3.  : when distributed, must be clearly marked as altered and accompanied
  4.  : by the originals.
  5.  : z0 board name, z2 - genesis, z4 - description, z5 - parameters, if any
  6.  sets z1 %item while %z1 split z1 / ""
  7.  sets item %z0 split s0 " " "";setc z1 "%z0/\L%item" split z1 / .;while "%z1<9" sets z1 "%z1 "
  8.  sets z3 %z0 setc z4 \L%item p?0 if f%n8/%z3.ul p?0 findq "\n%z4," %n8/%z3.ul
  9.  if ? lput \U%item lput " is already specified in %n8/%z3.ul\r\n" split s0 " " "/" "." "~" "~" "";return
  10.  p?0 if f%n7/%z3.lst p?0 findq " %z1%z2 " %n7/%z3.lst
  11.  split s0 " " "/" "." "~" "~" "";if ? lput \U%item lput " is already available at %z4\r\n" return
  12.  set z3 x;while !Jz3,yn acceptl1 z3 "Upload %item (y/n)? "
  13.  ife "iz3,y" goto beg;return
  14. top lput "\E[0m\E[2J\E[37;44mEnter Files to be uploaded to %z4\E[0m\r\n"
  15. next: lput "\r\nThe filename to be uploaded must not include directory delimiters(/).  Wildcard"
  16.  lput "\r\nspecifications with '?' or '*' may be used only by registered ZCOMM or Pro-Yam.\r\n\n\n" set z1 /
  17.  while "%z1>12||Jz1,/, \\" lput "\E[A\E[K\rEnter the Filename to Upload (Enter)=none? \E[12C<\r\n" accept z1 "\E[A\E[43C"
  18.  ife !%z1 return;if !f%dirsx/%z1 lput "File %dirsx/%z1 not found.\r\n" goto next
  19.  if "Jz1,*?" expand %lib/addupgen.t %dirsx/%z1;goback next
  20.  sets item %z1 split s0 " " "";setc z1 "%z0/\L%item" split z1 / .;while "%z1<9" sets z1 "%z1 "
  21.  sets z3 %z0 setc z4 \L%item p?0 if f%n8/%z3.ul p?0 findq "\n%z4," %n8/%z3.ul
  22.  if ? lput \U%item lput " is already specified in %n8/%z3.ul\r\n" split s0 " " "/" "." "~" "~" "";goback next
  23.  p?0 if f%n7/%z3.lst p?0 findq " %z1%z2 " %n7/%z3.lst
  24.  split s0 " " "/" "." "~" "~" "";if ? lput \U%item lput " is already available at %z4\r\n" goback next
  25.  gosub beg.%lib/addupgen.t;goback next
  26. beg:
  27.  : area,filename.ext,description
  28.  split s0 "~" "~" ";" "";ife !%z2 goto darea;lput \r\n
  29. narea: split z2 ":" "," "";setc z0 \U%z0 lput "[%z0] - %z1\r\n";if %z2 goback narea
  30. darea:
  31.  split s0 " " "/" "." "~" "~" ""
  32.  lput \r\n set z3 "" while "!%z3||az3==0||Jz3,,\\;~.+()[]{}/" acceptl z3 "Save File to Which Area Number: "
  33.  lput "\r\nDescriptions lines must not use semicolons(;).\r\n"
  34.  lput "\r\nPlease enter Version Number & File Description \U%item" lput " (Max Chrs: 72)\r\n\n"
  35.  set z7 ";" while "%z7>72||%z7<12||Jz7,;" lput "\E[A\E[K\r[>\E[72C<\r\n" accept z7 "\E[A\E[2C"
  36.  ife r nolog closerx;ki;create -+S!i %n8/%z0.ul;echof "\T%z3,%item,%z7"
  37.  if r w;nolog closerx;lput "\r\nUpload entry in %n8/%z0.ul for %item to %z4.\r\n"
  38.  if c ki;create -+S!i %n9/ZC%d%ano.LOG
  39.  return
  40.